package com.hnhegui.backend.platform.convert.merchant;

import com.hnhegui.backend.entity.PageResult;
import com.hnhegui.backend.merchant.dto.response.ProductDetailsResponseDTO;
import com.hnhegui.backend.platform.vo.merchant.common.ProductListItem;
import com.hnhegui.backend.platform.vo.merchant.response.ProductDetailResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ProductConvert {
    ProductConvert INSTANCE = Mappers.getMapper(ProductConvert.class);

    PageResult<ProductListItem> convertPage(PageResult<ProductDetailsResponseDTO> data);

    ProductDetailResponse convert(ProductDetailsResponseDTO data);
}
